﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrl_deleteimage.ascx.cs" Inherits="Controls_Admin_ctrl_deleteimage" %>

<asp:PlaceHolder runat="server" ID="plcList">
	<asp:Label runat="server" CssClass="editBoxTitle" ID="lblTitle" />
	
	<br />
	<br />
	
	<asp:TextBox runat="server" ID="searchBox" Text="suche" />
	
	<br />
	<br />
	
	<asp:GridView runat="server" Width="100%" CssClass="gvDefault" ID="gvJobs" AutoGenerateColumns="False" GridLines="None">
		<Columns>
			<asp:BoundField DataField="UploadDate" HeaderText="<% $Resources:CreationDate %>" >
				<ItemStyle Width="180px" />
				<HeaderStyle CssClass="gvDefaultHeader" />
			</asp:BoundField>
			
			<asp:TemplateField HeaderStyle-CssClass="gvDefaultHeader" HeaderText="<% $Resources:Imagename %>">
				<ItemTemplate>
					<asp:HyperLink runat="server" ID="linkShowImage" 
						Target="_blank" 
						NavigateUrl='<%# "~/default.aspx?item=" + DataBinder.Eval(Container.DataItem, "ImageID").ToString() %>' 
						Text='<%# DataBinder.Eval(Container.DataItem, "Name").ToString() %>'>
					</asp:HyperLink>
				</ItemTemplate>
			</asp:TemplateField>
			
			<asp:TemplateField HeaderStyle-CssClass="gvDefaultHeader" HeaderText="<% $Resources:Delete %>">
				<ItemStyle Width="50px" />
				<ItemTemplate>
					<asp:LinkButton runat="server" ID="btnDeleteImage" OnCommand="DeleteImage" 
						CommandName="DeleteImage" 
						CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' 
						Text='<% $Resources:Delete %>' 
						OnClientClick="javascript:chk=confirm('Delete this Image?');return chk;">
					</asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
</asp:PlaceHolder>
